.discussions-list {
    display: flex;
    flex-direction: column;
    min-height: 0; /* needed for Firefox/Edge scrolling to work properly; See sourcegraph/sourcegraph#12340 and https://codepen.io/slimsag/pen/mjPXyN */
    &--no-flex {
        display: block;
    }
    &__row {
        border-top: 1px solid $border-color;
        display: block;
        padding: 0.75rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;

        &:last-of-type {
            border-bottom: 1px solid $border-color;
        }

        &--active,
        &:hover {
            background-color: $color-bg-2;
        }

        &-title {
            overflow: hidden;
            text-overflow: ellipsis;
        }
    }
}

.theme-light {
    .discussions-list {
        &__row {
            color: $color-light-text-2;
            &-title {
                color: $color-light-text-2;
            }
            &--active,
            &:hover {
                background-color: $color-light-bg-3;
            }
        }
    }
}
